import request from "@/utils/request";

// 物料产品分类列表
export function listType(query) {
  return request({
    url: '/asset/category/list',
    method: 'get',
    params: query
  })
}

// 新增物料产品分类
export function addType(data) {
  return request({
    url: '/asset/category',
    method: 'post',
    data: data
  })
}

// 修改物料产品分类
export function updateType(data) {
  return request({
    url: '/asset/category',
    method: 'put',
    data: data
  })
}

// 删除物料产品分类
export function delType(itemTypeId) {
  return request({
    url: '/asset/category/' + itemTypeId,
    method: 'delete'
  })
}
